using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

using Peradigm.Framework.Domain.Security;
using Peradigm.Framework.Persistence;

namespace Liberty.Domain.GrantManagement
{
    [Serializable]
    public class GrantState : ReferenceValue
    {
        #region Constants
        #endregion

        #region Event Handlers
        #endregion

        #region Methods
        #endregion

        #region Properties
        #endregion

        #region Private Methods
        #endregion

        #region Private Properties
        #endregion

        #region Construction and Finalization
#warning Is this default ctor used anywhere or is it required by a tool framework?
        public GrantState()
            : base()
        {
        }

        public GrantState( string description, long ranking, bool active )
            : base( description, ranking, active )
        {
        }

        public GrantState( long oid, byte[] version, string description, long ranking, bool active )
            : base( oid, version, description, ranking, true )
        {
        }

        /// <summary>
        /// Creates a stubbed grant state populated with frequently used primitives.  
        /// Other aggregated objects are not populated by this factory method.
        /// </summary>
        /// <returns></returns>
        public static GrantState TestInstance()
        {
            return new GrantState( -1L, PersistentModel.NEW_VERSION, "Test Delivery Method", ReferenceValue.DEFAULT_RANKING, ReferenceValue.DEFAULT_STATUS );
        }
        #endregion

        #region Data Elements
        #endregion
    } 
} 